# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=clevis-extra-pins
pkgver=0_git20230629
_gitrev=684702e18e07fd3d453b5844051d9a7e424a9bb8
pkgrel=0
pkgdesc="Additional pins for Clevis binding framework"
url="https://github.com/anatol/clevis.go"
license="GPL-3.0-or-later"
arch="noarch"
depends="bash clevis"
source="https://github.com/anatol/clevis.go/archive/$_gitrev/clevis-extra-pins-$pkgver.tar.gz"
builddir="$srcdir/clevis.go-$_gitrev"
options="!check" # no test suite for bash scripts

package() {
	install -Dm755 \
		clevis-decrypt-yubikey \
		clevis-encrypt-yubikey \
		clevis-encrypt-remote \
		-t "$pkgdir"/usr/bin/
}

sha512sums="
969bc1812e39be36719ceb82e76876e8fcde874e92a89808a3ce5c19ba4be3d99f4285fa2e8c73ad25e157cc12f03edaa76084e599ec62e08887ec80e258ab7c  clevis-extra-pins-0_git20230629.tar.gz
"
